package com.boss.core.common;

import org.kohsuke.stapler.DataBoundConstructor;

/**
 * Artifact - used in maven based module view
 * @author Momin Noor Khan
 */
public class Artifact {
    private String moduleName;
    private String versionNumber;

    @DataBoundConstructor
    public Artifact(String moduleName, String versionNumber) {
        this.moduleName = moduleName;
        this.versionNumber = versionNumber;
    }

    /**
     * Getter for module name of the artifact.
     * @return
     */
    public String getModuleName() {
        return moduleName;
    }

    /**
     * Getter for version number of the artifact.
     * @return
     */
    public String getVersionNumber() {
        return versionNumber;
    }
}
